package com.wdc.patterns.adapter.class_adapter;

public class Client {
    public static void main(String[] args) {

        Computer computer = new Computer();

        //读取SD中的数据
        String msg = computer.readSD(new SDCardImpl());
        System.out.println(msg);
        System.out.println("======================");
        //使用该电脑读取TF卡中的数据
        String data = computer.readSD(new SDAdapterTF());
        System.out.println(data);


    }
}
